<!-- 双向绑定 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
  
</head>
<body>
    <!-- view 层 模板 -->
    <div id="app">
        
        输入文本: <input type="text" v-model="message" /> {{message}}

        <br /><br /><br />

        性别：
        <input type="radio" name="sex" value="男" v-model="checked"/> 男
        <input type="radio" name="sex" value="女" v-model="checked" /> 女
        <p>
            选中了谁: {{checked}}
        </p>

        <br /><br /><br />

        下拉框:
        <select name="" id="" v-model="selected">
            <option value="" disabled>请选择</option>
            <option value="A">A</option>
            <option value="B">B</option>
            <option value="C">C</option>
        </select>
        <span>{{selected}}</span>
    </div>

    <!-- 导入vue.js -->
    <script src="../public/vue2-5-21.js"></script>
    <script>
        var vm = new Vue({
            // 绑定dom
            el: "#app",
            data: {
                message: 123,
                checked: "",
                selected: "",
            }
        });

    </script>
</body>
</html>